package net.lzzy.pojo;

import java.io.Serializable;
import java.util.Objects;

public class Recode implements Serializable {
    private String carNo;
    private String typeNo;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Recode recode = (Recode) o;
        return Objects.equals(carNo, recode.carNo) && Objects.equals(typeNo, recode.typeNo);
    }

    @Override
    public int hashCode() {
        return Objects.hash(carNo, typeNo);
    }

    public Recode() {
    }

    public Recode(String carNo, String typeNo) {

        this.carNo = carNo;
        this.typeNo = typeNo;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getTypeNo() {
        return typeNo;
    }

    public void setTypeNo(String typeNo) {
        this.typeNo = typeNo;
    }

    @Override
    public String toString() {
        return "Recode{" +
                "carNo='" + carNo + '\'' +
                ", typeNo='" + typeNo + '\'' +
                '}';
    }
}
